<include file='Public/header' />
<form method="POST" enctype= "multipart/form-data" action="{:U('update')}" role="form">
	<input type='hidden' name="yjl_id" value={$one.yjl_id}>
	<input type='hidden' name="yyjl_photo" value={$one.yjl_photo}>
	<table class="table">
		<tr>
		<th>原头像</th>
		<td> <image src="__PUBLIC__/photo/{$one.yjl_photo}" width="60px" height="60px"></td>
		</tr>
		<tr>
		<th>上传新头像</th>
		<td><input type="file" name="yjl_photo" id="inputfile"></td>
		</tr>
		<tr>
		<th>昵称</th>
		<td> <input type="text" name="yjl_username" class="form-control" id="name" 
			 placeholder="请输入名称" value="{$one.yjl_username}">
		</td>
		</tr>
		<tr>
		<th>姓名</th>
		<td> <input type="text" name="yjl_realname" class="form-control" id="name" 
			 placeholder="请输入名称" value="{$one.yjl_realname}">
		</td>
		</tr>
		<tr>
		<th>邮箱</th>
		<td> <input type="email" name="yjl_email" class="form-control" id="name" 
			 placeholder="请输入名称" value="{$one.yjl_email}">
		</td>
		</tr>
			<tr>
		<th>电话</th>
		<td> <input type="text" name="yjl_tele" class="form-control" id="name" 
			 placeholder="请输入名称" value="{$one.yjl_tele}">
		</td>
		</tr>
		<tr>
		<th>当前状态</th>
		<td>
		 <select name="yjl_state" class="form-control">
		  <option value=0 <?php if($users['yjl_state']==0) echo "selected"?>>禁用
		  <option value=1 <?php if($users['yjl_state']==1) echo "selected"?>>正常
		  <option value=2 <?php if($users['yjl_state']==2) echo "selected"?>>禁言
		  </select>
		  </td>
		</tr>
			<tr>
		<th>明星作者</th>
		<td>
		 <select name="yjl_isstar" class="form-control">
		  <option value=-1 <?php if($users['yjl_isstar']==0) echo "selected"?>>否
		  <option value=1 <?php if($users['yjl_isstar']==1) echo "selected"?>>是
		  </select>
		  </td>
		</tr>
		<th>首页推荐</th>
		<td>
		<select name="yjl_isfirst" class="form-control">
		  <option value=-1 <?php if($users['yjl_isfirst']==0) echo "selected"?>>否
		  <option value=1 <?php if($users['yjl_isfirst']==1) echo "selected"?>>是
		  </select>
		  </td>
		</tr>
	</table>
	<input type="submit" class="btn btn-primary" value="提交">
</form>
<include file='Public/footer'/>
